package com.supreme.omsserver.service.orm;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supreme.omsserver.entity.mysql.Store;
import com.supreme.omsserver.mapper.StoreMapper;
import org.springframework.stereotype.Service;

@Service
public class StoreOrmService extends ServiceImpl<StoreMapper, Store> {

    public Store getByStoreCode(String storeCode) {
        return this.getOne(Wrappers.lambdaQuery(Store.class).eq(Store::getStoreCode, storeCode));
    }
}




